package com.ktjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ktjy.pojo.SysRole;
import com.ktjy.pojo.SysRoleRight;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface SysRoleMapperCh06 extends BaseMapper<SysRole> {
    @Insert(" INSERT INTO `crm`.`sys_role` (`role_name`, `role_desc`, `role_flag`) VALUES (#{roleName}, #{roleDesc},#{roleFlag})")
    @Options(useGeneratedKeys = true, keyProperty = "roleId", keyColumn = "role_id")
    int addSysRole(SysRole sysRole);

}
